package com.yz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.entity.SystemUserEntity;
import com.yz.mapper.SystemUserMapper;
import com.yz.service.SystemUserService;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

/**
 * @className: SystemUserService
 * @author: shuishui
 * @date: 2022/12/03 10:57
 */
@Service
public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemUserEntity> implements SystemUserService {

    @Override
    public SystemUserEntity getByName(String username) {
        QueryWrapper<SystemUserEntity> queryWrapper = new QueryWrapper();
        queryWrapper.eq("username",username);
        return baseMapper.selectOne(queryWrapper);
    }
}
